layui.use(['table', 'form', 'func', 'HttpRequest', 'util', 'upload'], function () {
    var $ = layui.$;

    var HttpRequest = layui.HttpRequest;



    var httpRequest = new HttpRequest(Feng.ctxPath + "/view/virus/protection/load?size=20", 'get');

    var result = httpRequest.start();



    var protectionInfo = $("#div-protection");

    var newsArray = result.data;

    if (null != newsArray && newsArray.length > 0) {
        for (var i = 0; i < newsArray.length; i++) {


            let  str="<ul class=\"layui-timeline\">\n" +
                "                        <li class=\"layui-timeline-item\">\n" +
                "                            <i class=\"layui-icon layui-timeline-axis\">&#xe63f;</i>\n" +
                "                            <div class=\"layui-timeline-content layui-text\">\n" +
                "                                <h3 class=\"layui-timeline-title\">\n" +
                "                                  <small>"+newsArray[i].title+"</small>&emsp;\n" +
                "                                </h3>\n" +
                "                                <ul>\n" +
                "                                    <li class=\"text-debug\">"+newsArray[i].context+"</li>\n" +
                "\n" +
                "                                </ul>\n" +
                "                            </div>\n" +
                "                        </li>\n" +
                "\n" +
                "\n" +
                "                    </ul>";
            protectionInfo.append(str);
        }

    }







});
